import Login from "./pages/login";
import Register from "./pages/register";
import Home from "./pages/home";

export default [
  {
    title: "登录",
    key: "/login",
    name: "Login",
    component: Login,
    auth:false
  },
  {
    title: "注册",
    key: "/register",
    name: "Register",
    component: Register,
    auth:false
  },
  {
    title: "一级主页",
    key: "/home",
    name: "Home",
    component: Home,
    auth:true,
    children: [
      {
        title: "首页",
        key: "/home/main",
        name: "Main",
      },
      {
        title: "用户管理",
        key: "/home/user",
        name: "User",
      },
      {
        title: "角色管理",
        key: "/home/character",
        name: "Character",
      },
      {
        title: "店铺管理",
        key: "/home/shop",
        name: "Shop",
      },
      {
        title: "商品管理",
        key: "/home/product",
        name: "Product",
        children: [
          {
            title: "品种管理",
            key: "/home/product/category",
          },
          {
            title: "商品列表",
            key: "/home/product/item",
          },
        ],
      },
      {
        title: "财务数据",
        key: "/home/datav",
        name: "Datav",
        children: [
          {
            title: "流水信息",
            key: "/home/datav/flow",
          },
          {
            title: "交易数据",
            key: "/home/datav/deal",
          },
        ],
      },
    ],
  },
];
